package com.zui.manager;

import org.springframework.transaction.annotation.Transactional;

import com.zui.entity.product.Product;
import com.zui.entity.product.ProductImage;

/**
 * 负责整个User模块内的业务.
 * 
 * 用@Transactional注明类里的每个方法都用事务的,对只读方法注明readOnly=true加强性能.
 * 
 * @author calvin
 */
@Transactional
public interface ProductManager extends EntityManager<Product, String>{
	
	/**
	 * delete product image from file systems and database.
	 * @param productImage
	 */
	public void deleteProductImage(ProductImage productImage);

}
